package com.training.java.core.homework01;

/**
 * Bicycle program

 * @author Shovan
 * 
 */
import java.util.Scanner;

public class BicycleDemo {

	public static void main(String[] args) {
		
		Scanner input = new Scanner(System.in);
		System.out.println("Enter gear type (A/B/C): ");
		String gearType = input.next();

		Bicycle bicycle01 = new Bicycle(gearType);
		
		System.out.println("");
		System.out.println("Current speed is " + bicycle01.getSpeed());
		bicycle01.accelerate(10);
		bicycle01.accelerate(20);
		bicycle01.accelerate(40);
		bicycle01.accelerate(10);
		System.out.println("Current speed is " + bicycle01.getSpeed());

		System.out.println("");
		System.out.println("Current gear is " + bicycle01.getGear());
		bicycle01.gearUp();
		bicycle01.gearUp();
		bicycle01.gearUp();
		bicycle01.gearUp();
		bicycle01.gearUp();
		bicycle01.gearUp();
		System.out.println("Current gear is " + bicycle01.getGear());

	}

}
